<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>主页</title>
        <link rel="stylesheet" href="{{ url_for('static',filename='css/main.css')}}" />
		<link rel="preconnect" href="https://fonts.gstatic.com">
		<link href="https://fonts.googleapis.com/css2?family=ZCOOL+QingKe+HuangYou&display=swap" rel="stylesheet">
		<script src="{{ url_for('static',filename='js/jquery.min.js')}}"></script>
		<script src="{{ url_for('static',filename='js/popper.min.js')}}"></script>
		<script src="{{ url_for('static',filename='js/bootstrap.min.js')}}"></script>
	</head>
	<body>
		<div class="banner">
			<span>爬&nbsp;&nbsp;&nbsp;&nbsp;虫&nbsp;&nbsp;&nbsp;&nbsp;管&nbsp;&nbsp;&nbsp;&nbsp;理</span>
		</div>
		<div class="main">
			<div class="user">你好，{{user}}</div>
            <input name="search" id="cz" placeholder="输入要爬取的网站：">
			<button id="gl_btn" onclick="user_manage()">用户管理</button>
            <button id="cz_btn" onclick="search()">搜索</button>
		</div>
		<script type="text/javascript">

			function user_manage(){

				window.location.href="/user_m";

			}

			function search(){
				window.location.href="{{ url_for('ymzs',url='ASDFG') }}".replace("ASDFG", document.getElementById('cz').value);

			}
		</script>
	</body>
</html>